<?php
class MainController extends Controller
{
    private $view;
    // private $model;
    private $model;


    //
    public function __construct()
    {
        parent::__construct();
        $this->view     = $this->getView();
        $this->model  = $this->getModel('admin');
    }
    
	public function index() 
	{
	    /*
		if ($this->model->check() == FALSE) {
			$this->redirect('admin/login');
		}
	    */
	    
	    $_manager = AdminComm::getAdminName();
	    
        $this->view->assign('web_title', '管理中心');
        $this->view->assign('manager', $_manager);
        
        echo $this->view->getExecutedHtml('public.html');
	}
    
}
